<template>
  <view class="page">
    <view class="block">
      <image class="block__icon" src="~@/static/order/payFull.png" />
      <view class="yd-flex-v">
        <text>待买家支付</text>
        <text class="text tip">支付时间剩余：<text class="time">10:00</text></text>
      </view>
    </view>
    <view class="block">
      <image class="block__icon" src="~@/static/order/sendFull.png" />
      <text>待发货</text>
    </view>
    <view class="block">
      <image class="block__icon" src="~@/static/order/address.png" />
      <view class="yd-flex-v">
        <text>雷成（<text class="yellow">18718645212</text>）</text>
        <text class="text gray">广东省广州市天河区黄埔大中100号</text>
      </view>
    </view>
    <view @tap="logistics" class="block" style="padding-right: 0">
      <image class="block__icon" src="~@/static/order/logisticsIcon.png" />
      <view class="yd-flex-v">
        <text style="font-size: 24rpx">【广州市】已签收  签收人是门卫家人代收点，如有疑问，请拨打18718854692。</text>
        <text class="text gray">2019/8/30  14:18</text>
      </view>
      <image class="block__arrow" src="~@/static/my/arrow.png" />
    </view>
    <view class="goods-box">
      <view class="item">
        <Goods />
        <Goods />
        <view class="item__total">
          共
          <text class="black"> 1 </text>
          件商品，
          实付款：
          <text class="red">￥59.00</text>
        </view>
      </view>
    </view>
    <view class="total">
      <view class="yd-flex-h-hR-vC">
        <text>运费：</text>
        <text class="total__price">￥10.00</text>
      </view>
      <view class="yd-flex-h-hR-vC">
        <text>实付款：</text>
        <text class="total__price red">￥59.00</text>
      </view>
    </view>
    <view class="order">
      <view class="order__head">
        <image class="order__icon" src="~@/static/order/orderIcon.png" />
        <text>订单信息</text>
      </view>
      <view class="order__cont">
        <view class="order__row">
          <text>订单编号</text>
          <text class="value">DD8468654654165</text>
        </view>
        <view class="order__row">
          <text>下单时间</text>
          <text class="value">2019-09-09 09:09:09</text>
        </view>
        <view class="order__row">
          <text>配送方式</text>
          <text class="value">顺丰快递</text>
        </view>
      </view>
    </view>
    <view class="pay">
      <view class="yd-flex-h-hL-vC">
        <image class="pay__icon" src="~@/static/order/payIcon.png" />
        <text>支付方式</text>
      </view>
      <view class="yd-flex-h-hR-vC">
        <image class="pay__weixin" src="~@/static/order/weixinPay.png" />
        <text>微信支付</text>
      </view>
    </view>
    <view class="fixed-btm">
      <view>物流信息</view>
      <view>删除订单</view>
      <view class="yellow">去支付</view>
    </view>
  </view>
</template>

<script>
import Goods from '@/components/Goods/Goods.vue';

export default {
  components: { Goods },
  methods: {
    logistics() {
      uni.navigateTo({
        url: '/subpages/order/logisticsDetail/logisticsDetail'
      })
    }
  }
}
</script>

<style lang="scss">
.page {
  box-sizing: border-box;
  padding-left: 24rpx;
  padding-right: 24rpx;
  margin-top: 24rpx;
  padding-bottom: calc(24rpx + 88rpx);
  padding-bottom: calc(24rpx + 88rpx + constant(safe-area-inset-bottom));
  padding-bottom: calc(24rpx + 88rpx + env(safe-area-inset-bottom));
}
.block {
  background-color: #fff;
  border-radius: 14rpx;
  color: #333333;
  font-size: 30rpx;
  box-sizing: border-box;
  padding: 24rpx;
  display: flex;
  align-items: center;
  margin-bottom: 24rpx;
  font-weight: bold;
  .text {
    font-size: 24rpx;
    margin-top: 8rpx;
    font-weight: 400;
    line-height: 1.3;
  }
  .gray {
    color: #666;
  }
  .tip {
    color: #999;
  }
  .time {
    color: #FF815A;
  }
  .yellow {
    color: #FBBF0D;
  }
}
.block__icon {
  min-width: 80rpx;
  width: 80rpx;
  height: 80rpx;
  margin-right: 20rpx;
}
.block__arrow {
  min-width: 88rpx;
  width: 88rpx;
  height: 88rpx;
}
.goods-box {
  background-color: #fff;
  border-radius: 14rpx;
  overflow: hidden;
  margin-bottom: 24rpx;
  box-sizing: border-box;
  padding: 24rpx;
  .item {
    font-size: 24rpx;
    color: #333;
    .tip {
      color: #999;
    }
  }
  .item__total {
    color: #999;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    .black {
      color: #333;
      margin: 0 8rpx;
    }
    .red {
      color: #FF2323;
    }
  }
}
.total {
  background-color: #fff;
  border-radius: 14rpx;
  overflow: hidden;
  margin-bottom: 24rpx;
  box-sizing: border-box;
  padding: 24rpx;
  font-size: 24rpx;
  color: #999;
  line-height: 1.5;
}
.total__price {
  width: 40%;
  color: #444444;
  text-align: right;
  &.red {
    color: #FF2323;
    font-size: 30rpx;
  }
}
.order {
  background-color: #fff;
  border-radius: 14rpx;
  overflow: hidden;
  font-size: 24rpx;
  color: #333;
  margin-bottom: 24rpx;
  .tip {
    color: #999;
  }
}
.order__head {
  width: 100%;
  height: 64rpx;
  border-bottom: 2rpx solid #EEEEEE;
  display: flex;
  align-items: center;
  padding: 0 24rpx;
  box-sizing: border-box;
}
.order__icon {
  width: 32rpx;
  height: 32rpx;
  margin-right: 8rpx;
}
.order__cont {
  box-sizing: border-box;
  padding: 20rpx 24rpx;
}
.order__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24rpx;
  color: #999;
  margin: 8rpx 0;
  .value {
    color: #333;
  }
}
.pay {
  background-color: #fff;
  border-radius: 14rpx;
  box-sizing: border-box;
  padding: 24rpx;
  font-size: 26rpx;
  color: #333;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pay__icon {
  width: 32rpx;
  height: 32rpx;
  margin-right: 12rpx;
}
.pay__weixin {
  width: 48rpx;
  height: 48rpx;
  margin-right: 6rpx;
}
.fixed-btm {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: 100%;
  height: 88rpx;
  background-color: #fff;
  box-sizing: content-box;
  padding-bottom: 0;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  > view {
    min-width: 128rpx;
    border: 2rpx solid #EEEEEE;
    border-radius: 26rpx;
    height: 48rpx;
    box-sizing: border-box;
    padding: 0 16rpx;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24rpx;
    margin-right: 20rpx;
    &.yellow {
      color: #FBBF0D;
      border-color: #FBBF0D;
    }
  }
}
</style>
